package com.taobao.txc.common.c;

import java.nio.ByteBuffer;

public class d
  extends F
  implements q
{
  public long a = 1800000L;
  String b;
  byte c;
  String d;
  
  public void a(long paramLong)
  {
    this.a = paramLong;
  }
  
  public void a(String paramString)
  {
    this.b = paramString;
  }
  
  public void a(byte paramByte)
  {
    this.c = paramByte;
  }
  
  public void b(String paramString)
  {
    this.d = paramString;
  }
  
  public String toString()
  {
    return "BeginRetryBranchMessage dbName:" + this.b + ",Commit mode:" + this.c + ",effectiveTime:" + this.a + ",sql:" + this.d;
  }
  
  public short b_()
  {
    return 15;
  }
  
  public byte[] c()
  {
    ByteBuffer localByteBuffer = ByteBuffer.allocate(1048576);
    localByteBuffer.putLong(this.a);
    localByteBuffer.put(this.c);
    if (this.b != null)
    {
      arrayOfByte = this.b.getBytes(j);
      localByteBuffer.putShort((short)arrayOfByte.length);
      if (arrayOfByte.length > 0) {
        localByteBuffer.put(arrayOfByte);
      }
    }
    else
    {
      localByteBuffer.putShort((short)0);
    }
    if (this.d != null)
    {
      arrayOfByte = this.d.getBytes(j);
      localByteBuffer.putShort((short)arrayOfByte.length);
      if (arrayOfByte.length > 0) {
        localByteBuffer.put(arrayOfByte);
      }
    }
    else
    {
      localByteBuffer.putShort((short)0);
    }
    localByteBuffer.flip();
    byte[] arrayOfByte = new byte[localByteBuffer.limit()];
    localByteBuffer.get(arrayOfByte);
    return arrayOfByte;
  }
  
  public void a(ByteBuffer paramByteBuffer)
  {
    this.a = paramByteBuffer.getLong();
    this.c = paramByteBuffer.get();
    int i = paramByteBuffer.getShort();
    byte[] arrayOfByte;
    if (i > 0)
    {
      arrayOfByte = new byte[i];
      paramByteBuffer.get(arrayOfByte);
      a(new String(arrayOfByte, j));
    }
    i = paramByteBuffer.getShort();
    if (i > 0)
    {
      arrayOfByte = new byte[i];
      paramByteBuffer.get(arrayOfByte);
      b(new String(arrayOfByte, j));
    }
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.common.c.d
 * JD-Core Version:    0.7.0.1
 */